<%--
    Document   : ListadoUsuarioCumple
    Created on : 04-may-2010, 22:10:45
    Author     : Andres
--%>
<%@ page language="java" %>
<%@ page import = " com.ejb.VotosFachadaRemote, java.util.Iterator, java.util.Vector, java.util.List, java.lang.Long, java.lang.Object, java.lang.String, java.util.Date, java.util.Calendar" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html:html lang="true">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
         <style type="text/css">
          body {
                background-color: #000000;
                font-family: Arial, Helvetica, sans-serif, "Arial Narrow";
                font-weight: bold;
                color: #FFFFFF;
                font-size: 14px;
        }
        </style>
        <html:base/>
    </head>
    <body>
        <% if (request.getSession().getAttribute("Tipo")!="Admin")
         {
      %>
         <jsp:forward page="Welcome.do"/>
      <%
          }
      %>
        <jsp:include page="Cabezal.html"/>
        <table width="100%">
            <tr>
                <td width="30%" align="center">
                    <jsp:include page="AdministradorMenu.jsp"/>
                </td>
                <td align="center">

                    <h1>Listado Cumpleaños Usuarios Comunes</h1>

                    <jsp:useBean id="listaCumple" scope="session" class="com.actions.ListCumple" />

                    <table width="100%" style="color:black; font-size:18px">
                        <tr style="color:white; background-image:url(imagenes/botonnegro.jpg)">
                        <td align="center">
                            <b>Nick</b>
                        </td>
                        <td align="center">
                            <b>Nombre</b>
                        </td>
                        <td align="center">
                            <b>Apellido</b>
                        </td>
                        </tr>
                    <%

                        long largo = listaCumple.obtenerLista();

                               if (largo==0){
                     %>
                     <div align="center"> <h3> (No hay cumpleaños el día de hoy)  </h3> </div>
                     <%

                           }
                           else{
                            for (int i=0; i<largo; i++)
                              {
                                    if (i%2==0)
                                      {
                      %>
                                   <tr style="background-image:url(imagenes/fondo1.jpg)" >
                      <%
                                      }
                                       else
                                      {
                      %>
                                    <tr style="background-image:url(imagenes/botonrojo.jpg)">
                      <%
                                       }
                      %>

                                 <td>
                                    <%= listaCumple.darPosicion(i,0) %>
                                </td>
                                <td>
                                     <%= listaCumple.darPosicion(i,1) %>
                                </td>
                                <td>
                                     <%= listaCumple.darPosicion(i,2) %>

                                </td>
                             </tr>
                            <%
        }
        }
 %>
                    </table>
                </td>


      </tr>
  </table>
  <jsp:include page="Pie.html"/>
    </body>
</html:html>
